package cn.harmonyoslearn.navrouter.datas;

import cn.harmonyoslearn.navrouter.datas.enums.InitNavrouterModelEnum;

import java.util.Objects;

public class NavrouterInfo {
    public String navNamesPath;
    public Boolean automaticDeletion;
    public InitNavrouterModelEnum model;

    public NavrouterInfo(String navNamesPath, Boolean automaticDeletion, String model) {
        this.navNamesPath = navNamesPath;
        this.automaticDeletion = automaticDeletion;

        if (Objects.equals(model, "DEFAULT")) {
            this.model = InitNavrouterModelEnum.DEFAULT;
        } else {
            this.model = InitNavrouterModelEnum.CUSTOM;
        }
    }
}
